const path = require('path');

module.exports = {
    mode:'production',
    entry:'./src/index.js',
    // devtool:'inline-source-map',
    output:{
        path: path.join(__dirname,'dist'),
        filename:'snake.js'
    },
    devServer: {
        contentBase: path.join(__dirname, 'dist'),
        compress: true,
        port: 9000
    },
    module:{
        rules:[
            {
                test: /\.js$/,
                use:[
                    {
                        loader: 'babel-loader',
                    }
                ],
                exclude: /node_modules/
            }
        ]
    }
}